package cc.atliberty.structural.adapter.ex3;

import java.util.ArrayList;
import java.util.Vector;

/**
 * @Author 元宵
 * @url www.atliberty.cc
 * @Date 2023-10-31 07:55
 * @description:
 */
public class Client2 {
    public static void main(String[] args) {
        ArrayList<String> arr = new ArrayList<>();
        arr.add("第一个元素");
        arr.add("第二个元素");
        arr.add("第三个元素");
        arr.add("第四个元素");
        arr.add("第五个元素");
        Vector<String> vector = new Vector<>(arr);
        Enuterator enuterator = new Enuterator(vector.elements());
        while (enuterator.hasNext()) {
            System.out.println(enuterator.next());
        }
    }
}
